let mongoose = require('../mong/mongo.js'),   
    Schema = mongoose.Schema;      
let GoodSchema = new Schema({ 
    goodsName : { type: String},              
    goodType: {type: String},
    price: {type: Number},
    goodsImg: {type: String},
    goodOfften: {type: Number},
    count:{type:Number}
});
//var data=[
//{"goodsImg":"img/pos001.jpg","goodsName":"香辣鸡腿堡","price":18,"goodType":1,"goodOfften":1,"count":1},
//{"goodsImg":"img/pos002.jpg","goodsName":"川香鸡腿堡","price":16,"goodType":1,"goodOfften":1,"count":1},
//{"goodsImg":"img/pos003.jpg","goodsName":"汉堡套餐","price":24,"goodType":0,"goodOfften":0,"count":1},
//{"goodsImg":"img/pos004.jpg","goodsName":"鸡肉卷","price":14,"goodType":1,"goodOfften":0,"count":1},
//{"goodsImg":"img/pos005.jpg","goodsName":"番茄炒蛋盖饭","price":18,"goodType":2,"goodOfften":1,"count":1},
//{"goodsImg":"img/pos006.jpg","goodsName":"辣子鸡盖饭","price":23,"goodType":2,"goodOfften":0,"count":1},
//{"goodsImg":"img/pos007.jpg","goodsName":"鸡排饭","price":21,"goodType":2,"goodOfften":1,"count":1},
//{"goodsImg":"img/pos008.jpg","goodsName":"香辣牛肉盖饭","price":24,"goodType":2,"goodOfften":0,"count":1},
//{"goodsImg":"img/pos009.jpg","goodsName":"香辣鸡翅","price":8,"goodType":3,"goodOfften":1,"count":1},
//{"goodsImg":"img/pos010.jpg","goodsName":"鸡排","price":10,"goodType":3,"goodOfften":0,"count":1},
//{"goodsImg":"img/pos011.jpg","goodsName":"雪碧","price":4,"goodType":4,"goodOfften":0,"count":1},
//{"goodsImg":"img/pos012.jpg","goodsName":"可乐","price":4,"goodType":4,"goodOfften":1,"count":1},
//{"goodsImg":"img/pos013.jpg","goodsName":"橙汁","price":4,"goodType":4,"goodOfften":1,"count":1},
//{"goodsImg":"img/pos014.jpg","goodsName":"咖啡","price":4,"goodType":4,"goodOfften":0,"count":1}
//]
//var User=mongoose.model('Good',GoodSchema)
//User.create(data,function(err){
//	
//})
module.exports = mongoose.model('Good',GoodSchema)